#ifndef __PASSWORD_H__
#define __PASSWORD_H__

#include "sys.h"
#include "stdio.h"
#include "w25q128.h"
#include "oled.h"
#include "keyboard.h"
#include "string.h"
#include "lock.h"
#include "beep.h"
#include "delay.h"

#define PASSWORD_SIZE    10
#define POUND_KEY        '#'
#define STAR_KEY         '*'
#define TRUE             1
#define FALSE            0

void password_init(void);
uint8_t password_get_input(void);
uint8_t password_compare(void);
void password_input_right_action(void);
void password_input_wrong_action(void);
void password_old_right_action(void);
void password_old_wrong_action(void);
void password_check(void);

#endif